<div id="prefix">
  visible1
  <div id="invisibleDiv1" style="display: none">
    <span>invisible1</span>
  </div>
</div>
<span id="target">target text</span>
<div id="suffix">
  <div style="display: none">
    <span>invisible2</span>
  </div>
  visible2
</div>
